﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterAdmin.master" AutoEventWireup="true" CodeBehind="InStock.aspx.cs" Inherits="UdrinkWater_Project.Admin.InStock" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
        HeaderText="สินค้าคงเหลือ" Width="980px">
        <HeaderStyle Font-Size="Large" />
        <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
    <table style="width: 100%">
        <tr>
            <td>
                <dx:ASPxButton ID="ASPxButton1" runat="server" OnClick="ASPxButton1_Click" 
                    Text="พิมพ์รายการ">
                </dx:ASPxButton>
                <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" 
                    GridViewID="gvStock">
                    <Styles>
                        <Default Font-Names="Arial Unicode MS">
                        </Default>
                    </Styles>
                </dx:ASPxGridViewExporter>
                <dx:ASPxGridView ID="gvStock" runat="server" Width="980px" 
                    AutoGenerateColumns="False" Font-Names="Arial Unicode MS">
                    <Columns>
                        <dx:GridViewDataTextColumn Caption="รายการ" FieldName="Number" 
                                                ShowInCustomizationForm="True" UnboundType="String" 
                            VisibleIndex="1">
                                                <Settings AllowAutoFilter="False" ShowInFilterControl="False" />
                                                <DataItemTemplate>
                                                    <%#Container.ItemIndex +1 %>
                                                </DataItemTemplate>
                                                <HeaderStyle HorizontalAlign="Center" />
                                                <CellStyle HorizontalAlign="Center">
                                                </CellStyle>
                                            </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="รหัสสินค้า" FieldName="Product_ID" 
                            ShowInCustomizationForm="True" VisibleIndex="1">
                            <Settings AutoFilterCondition="Contains" FilterMode="DisplayText" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="ชื่อสินค้า" FieldName="Product_Name" 
                            ShowInCustomizationForm="True" VisibleIndex="2">
                            <Settings AutoFilterCondition="Contains" FilterMode="DisplayText" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="หน่วย" FieldName="Unit" 
                            ShowInCustomizationForm="True" VisibleIndex="3">
                            <Settings AutoFilterCondition="Contains" FilterMode="DisplayText" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="จำนวนคงเหลือ" FieldName="Count" 
                            ShowInCustomizationForm="True" VisibleIndex="4">
                            <Settings AutoFilterCondition="Contains" FilterMode="DisplayText" />
                        </dx:GridViewDataTextColumn>
                    </Columns>
                    <SettingsPager PageSize="30">
                    </SettingsPager>
                    <Settings ShowFilterRow="True" />
                </dx:ASPxGridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
            </td>
        </tr>
    </table>
            </dx:PanelContent>
</PanelCollection>
    </dx:ASPxRoundPanel>
</asp:Content>
